import request from '@/utils/request'

// 查询家教列表
export function listJiajiao(query) {
  return request({
    url: '/ziliao/jiajiao/list',
    method: 'get',
    params: query
  })
}

// 查询家教详细
export function getJiajiao(id) {
  return request({
    url: '/ziliao/jiajiao/' + id,
    method: 'get'
  })
}

// 新增家教
export function addJiajiao(data) {
  return request({
    url: '/ziliao/jiajiao',
    method: 'post',
    data: data
  })
}

// 修改家教
export function updateJiajiao(data) {
  return request({
    url: '/ziliao/jiajiao',
    method: 'put',
    data: data
  })
}

// 删除家教
export function delJiajiao(id) {
  return request({
    url: '/ziliao/jiajiao/' + id,
    method: 'delete'
  })
}
